import request from '@/utils/request'
// 获取所有酒店信息
export const getHotelInfoAPI = () => {
  return request({
    method: 'GET',
    url: '/api/hotel'
  })
}
// 通过id查询酒店信息
export const getHotelInfo = (id) => {
  return request({
    method: 'GET',
    url: `/api/v1/hotel/${id}`
  })
}
// 带分页查询酒店信息
export const getHotelListAPI = ({ page, pageSize }) => {
  return request({
    method: 'GET',
    url: `/api/hotel?page=${page}&pageSize=${pageSize}`
  })
}
// 新增酒店信息

export const uploadHotelAPI = ({ page, pageSize }) => {
  return request({
    method: 'GET',
    url: `/api/hotel?page=${page}&pageSize=${pageSize}`
  })
}
